package com.xzx.shop_front_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.persistence.*;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * 消息实体类
 */
@Component
@Data
@TableName("shop_messages")
public class Messages {
    @TableId(type = IdType.AUTO)
    private Long id;
    @JsonProperty("member_id")
    private int memberId;
    private String content;
    private String title;
    private int status;
    private int createdTime;
    private int readTime;

}
